﻿@model Kavaa.Modules.PortailMedical.Presentation.Models.MyViewModel

@using System.Web.Optimization
@using BootstrapSupport
@using NavigationRoutes

@{
    ViewBag.Title = "Accreditation";   
    Layout=null;
 }

<!DOCTYPE html>
@if(Session["user"]!= null)
    {
<html lang="en">
    <head>
        <meta charset="utf-8">
        <title>@ViewBag.Title</title>
       @*<meta name="viewport" content="width=device-width, initial-scale=1.0">*@
        <link href="@Styles.Url("~/content/css")" rel="stylesheet"/>
        <link href="@Styles.Url("~/Content/css-responsive")" rel="stylesheet" type="text/css" />
        @*@RenderSection("head", required: false)*@
        @Html.Partial("_html5shiv")
        @* favicons and touch icons go here *@
        @Scripts.Render("~/js")
       <div class="navbar navbar-inverse navbar-fixed-top" >
           <div class="navbar-inner">     
        </div>       
        </div>
        <style>
             .form-signin {
        
                                    padding: 19px 29px 29px;
                                    margin: 0 auto 20px;
                                    background-color: #fff;
                                    border: 1px solid #e5e5e5;
                                    -webkit-border-radius: 5px;
                                       -moz-border-radius: 5px;
                                            border-radius: 5px;
                                    -webkit-box-shadow: 0 1px 2px rgba(0,0,0,.05);
                                       -moz-box-shadow: 0 1px 2px rgba(0,0,0,.05);
                                            box-shadow: 0 1px 2px rgba(0,0,0,.05);
                        }
        </style>



<style>
  body { min-width: 520px; }
  .column { width: 170px; float: left; padding-bottom: 100px; }
  .portlet { margin: 0 1em 1em 0; }
  .portlet-header { margin: 0.3em; padding-bottom: 4px; padding-left: 0.2em; }
  .portlet-header .ui-icon { float:right; }
  .portlet-content { padding: 0.4em;font-size: 12px;display:none}
  .ui-sortable-placeholder { border: 1px dotted black; visibility: visible !important; height: 50px !important; }
  .ui-sortable-placeholder * { visibility: hidden; }
  </style>
  <script>
      $(function () {
          $(".column").sortable({
              connectWith: ".column"
          });

          $(".portlet").addClass("ui-widget ui-widget-content ui-helper-clearfix ui-corner-all")
            .find(".portlet-header")
              .addClass("ui-widget-header ui-corner-all")
              .prepend("<span class='ui-icon ui-icon-plusthick'></span>")
              .end()
            .find(".portlet-content");

          $(".portlet-header .ui-icon").click(function () {
              $(this).toggleClass("ui-icon-plusthick").toggleClass("ui-icon-minusthick");
              $(this).parents(".portlet:first").find(".portlet-content").toggle();
          });

          $(".column").disableSelection();
      });



      $(document).ready(function () {
          $('#example').dataTable({
              "sDom": "<'row'<'span4'l><'span4'f>r>t<'row'<'span4'i><'span4'p>>",
              "sPaginationType": "bootstrap"
          });
          $('#example2').dataTable({
              "sDom": "<'row'<'span4'l><'span4'f>r>t<'row'<'span4'i><'span4'p>>",
              "sPaginationType": "bootstrap"
          });
          $('#example3').dataTable({
              "sDom": "<'row'<'span4'l><'span4'f>r>t<'row'<'span4'i><'span4'p>>",
              "sPaginationType": "bootstrap"
          });
      });
  </script>

<link rel="stylesheet" href="~/Content/jquery-ui.css" />
                           <div class="container">
     @{
         
         
         var prenomuser = ((Kavaa.Modules.PortailMedical.Entity.Utilisateur)(Session["user"])).Prenom;
       var nomuser = ((Kavaa.Modules.PortailMedical.Entity.Utilisateur)(Session["user"])).Name;}
          <table class="container">
              <tr>
                  <td>
            <img src="/Content/images/mediciMaroc.png" /> </td>
                  <td class="pull-right">
                      <br />
            <p style="text-align:right"><i class=" icon-user"> </i>&nbsp; &nbsp; @prenomuser  @nomuser  &nbsp; &nbsp;  @Html.ActionLink("Se déconnecter","Deconnexion")&nbsp; &nbsp; </p>
               </td>
           
        
        </tr>
        </table>
                               </div>
    </head>
   
    <body style="background-color:#fafafa">
        
      <div class="container">
            @Html.Partial("_alerts")
            @Html.Partial("_validationSummary")
 
 <div id="countDiv">
<div class="container" style="background-color:white">
    <div class="navbar">
  <div class="navbar-inner">
      <div class="container">
        <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </a>
          <div class="nav-collapse collapse">
        <ul class="nav">
      <li > @Html.ActionLink("Accueil","AccueilCabinet")</li>
      <li class="active"> @Html.ActionLink("Accréditation","Accreditation")</li>
      <li>@Html.ActionLink("Réservation","AccueilReservation")</li>
      <li><a href="#">Rapports d'interventions</a></li>
      <li>@Html.ActionLink("Comptes Cabinet","ComptesCabinet")</li>

  
    </ul>
            <form class="navbar-search pull-right">
      <i class="icon-search"></i>
  <input type="text" class="search-query" placeholder="Recherche">
</form>
  </div>
          </div>
      </div>
           
</div>
      <!-- Example row of columns -->
  
      <div style="padding-top:30px;padding-left:-10px;margin-right:5px; font-size:16px" >
          <table style="width:100%">
            <tr>
                <td  style="width:20%" >
           <div class="span3" style="margin-right:20px; margin-left:3px; width:230px">
          <div class="well">
            <ul class="nav nav-list">
              <li class="nav-header"></li>
              <li class="active"> @Html.ActionLink("Etat des accréditations","Accreditation")</li>
              <li>@Html.ActionLink("Demander Accréditation","Demande")</li>
              <li><a href="#">Annuler Accréditation</a></li>
             
            </ul>
          </div>
        </div>
                    </td>
                <td> Ces listes représentent l'état de vos demandes d'accréditation :  </td>
                </tr>
              <tr>
                  <td></td>
                <td style="width:80%">


                    <div class="portlet" style="width:100%">
    <div class="portlet-header" style="background-color: #dff0d8; color: #468847; font-size:smaller"> Accréditations accordées: 

    </div>
    <div class="portlet-content"> Vous êtes accrédités chez les cliniques suivantes:
 <br />
        <br />

        @Html.Action("GetAccreditationsAccordeesByUser", "Cabinet")
    </div>
  </div>
                </td>
                </tr>

              <tr>
                   <td style="width:20%">

                  </td>
                  <td style="width:80%">

                      
                    <div class="portlet" style="width:100%">
    <div class="portlet-header" style="background-color: #fcf8e3; color:#c09853; font-size:smaller">   Accréditations en cours de traitement: 

    </div>
    <div class="portlet-content">Ces demandes sont en cours de traitement :
 <br /><br />
        
        @Html.Action("GetAccreditationsEnCoursByUser", "Cabinet")

    </div>
  </div>

                  </td>
                 
              </tr>


              <tr>
                  <td style="width:20%">

                  </td>
                  <td style="width:80%">
                      
                    <div class="portlet" style="width:100%">
    <div class="portlet-header" style="background-color: #f2dede; color: #b94a48; font-size:smaller"> Accréditaions refusées: 

    </div>
    <div class="portlet-content">Vos demandes ont été refusées chez ces cliniques :
 
        <br />
        <br />
        
        @Html.Action("GetAccreditationsRefuseesByUser", "Cabinet")


    </div>
  </div>
                  </td>
              </tr>
              </table>

   </div>
  
    
    </div>
     <hr >
    <footer>
                <p>&copy; Kavaa @System.DateTime.Now.ToString("yyyy")</p>
            </footer> 
      
</div>  
           
          </div>
     
      @*   @RenderSection("Scripts", required: false)*@
    </body>
</html>
      }
else{
 
  <h5>  Pour pouvoir accéder à cette page veuillez vous connecter :  @Html.ActionLink("Se connecter","SignIn","test") </h5>

}

